/**
 * @class
 * @memberof w.parser
 * @param {*} message 消息
 * @param {*} callback 处理完成的回调
 */
function createRectage(message, callback) {
    let { width, height,repeatSeg } = message;
    let position = new Float32Array([-width / 2, height / 2, 0,
      -width / 2, -height / 2, 0,
      width / 2, -height / 2, 0,
      width / 2, height / 2, 0,
    ]);
    let indices = new Uint16Array([0, 1, 2, 0, 2, 3]);
    let uv=new Float32Array([0,0,0,repeatSeg,repeatSeg,repeatSeg,repeatSeg,0]);
    callback({ data: { indices, position,uv }, transferlist: [indices.buffer, position.buffer,uv.buffer] });
  }
  
  export { createRectage }
  